package com.sesame.common.utils;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 相应结果枚举类
 */
@AllArgsConstructor
public enum ResultStatusCode {
    OK(200, "服务器成功返回请求的数据。"),
    SYSTEM_ERR(500, "系统错误"),
    PERMISSION_DENIED(402, "用户没有权限（令牌、用户名、密码错误）。"),
    NO_SUCH_PERMISSION(401,"已经登录，但是没有这个权限"),
    INVALID_CLIENTID(403, "错误的客户端id"),
    INVALID_PASSWORD(403, "用户名或者密码不正确"),
    INVALID_CAPTCHA(403, "Invalid captcha or captcha overdue"),
    INVALID_USERNAME(403,"账号已经被占用"),
    INVALID_MOBILE(403,"手机号已经被占用"),
    INVALID_QIANDAO(403,"已经签过到了"),
    INVALID_SEND_MOBILE(403,"手机号不能为空"),
    INVALID_SEND_DESCRIPTION(403,"描述不能为空"),
    INVALID_ROLENAME(403,"角色名已经被占用"),
    INVALID_ADDRESS(403,"街镇名已经被占用"),
    INVALID_PINGCI(403,"频次已经被占用"),
    INVALID_TOKEN(403, "token不合法,请重新登录"),
    INVALID_FCODE_MOBILE(403, "对不起,养护公司编号,或手机号已被占用！"),
    INVALID_PARAM(403,"参数不合法"),
    INVALID_PROBLEM_FTIP(403,"标签名已经被占用"),
    INVALID_MENU_PERMISSION(403,"权限标识已经存在"),
    INVALID_MENU_URL(403,"权限URL已经存在"),
    INVALID_ROLE(403,"没有相关的角色"),
    PERMISSION_DENIED_DELETE_ROLE(403,"超级用户不允许删除"),
    INFO_NOT_COMPLETE(202,"添加成功,但是信息添加不完全"),
    INFO_NOT_OK(202,"添加成功,但是该角色不允许手机端登录，如果需要，请更换其他角色"),
    ACCOUNT_FORBBIDEN(401,"角色被禁用，请联系管理员");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
